﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace AMSService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IAMSService" in both code and config file together.
    [ServiceContract]
    public interface IAMSService
    {
        [OperationContract]
        model.User Login(string UserName, string Password);

        [OperationContract]
        bool Register(model.User CurrentUser);

        [OperationContract]
        model.Asset SaveAsset(model.Asset CurrentAsset);

        [OperationContract]
        model.AMSImage SaveImage(model.AMSImage CurrentImage);

        [OperationContract]
        model.PurchaseData SavePurchase(model.PurchaseData CurrentPurchase);

        [OperationContract]
        model.ScheduleData SaveSchedule(model.ScheduleData CurrentSchedule);

        [OperationContract]
        model.ServiceData SaveService(model.ServiceData CurrentService);

        [OperationContract]
        model.User SaveUser(model.User CurrentUser);

        [OperationContract]
        model.WarrantyData SaveWarranty(model.WarrantyData CurrentWarranty);

        [OperationContract]
        bool DeleteImage(model.AMSImage CurrentImage);

        [OperationContract]
        bool DeleteAsset(model.Asset CurrentAsset);

        [OperationContract]
        bool DeletePurchase(model.PurchaseData CurrentPurchase);

        [OperationContract]
        bool DeleteSchedule(model.ScheduleData CurrentSchedule);

        [OperationContract]
        bool DeleteService(model.ServiceData CurrentService);

        [OperationContract]
        bool DeleteUser(model.User CurrentUser);

        [OperationContract]
        bool DeleteWarranty(model.WarrantyData CurrentWarranty);
    }
}
